package com.kangyi.admin.mapper;

import com.kangyi.vo.NursingHomeReviewReplyVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author Blank
 * @version 1.0
 */
@Mapper
public interface ReviewReplyMapper {

    @Select("select * from nursing_home_review_reply where review_id = #{reviewId};")
    NursingHomeReviewReplyVO getByReviewId(Integer reviewId);

    @Delete("delete from nursing_home_review_reply where review_id = #{reviewId};")
    void deleteById(Integer reviewId);

    @Delete("delete from nursing_home_review_reply  where admin_user_id = #{adminUserId};")
    void deleteByAdminUserId(Integer adminUserId);

    @Delete("delete from nursing_home_review_reply where id = #{replyId};")
    void deleteByReplyId(Integer replyId);
}
